package com.tgb.mapper;

import com.tgb.model.Banner;
import com.tgb.model.example.BannerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BannerMapper {
    long countByExample(BannerExample example);

    int deleteByExample(BannerExample example);

    int insert(Banner record);

    int insertSelective(Banner record);

    List<Banner> selectByExample(BannerExample example);

    int updateByExampleSelective(@Param("record") Banner record, @Param("example") BannerExample example);

    int updateByExample(@Param("record") Banner record, @Param("example") BannerExample example);

    List<Banner> selectByExampleWithBounds(@Param("example") BannerExample example, @Param("offset") int offset, @Param("limit") int limit);
    
    List<Banner> selectAllBanner();
    
    Banner selectByPrimaryKey(int id);
}